package com.bio.entity.task;

import java.util.Calendar;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.bio.entity.BaseObject;

@Entity
@Table(name = "table_task_task")
public class Task extends BaseObject{

	private static final long serialVersionUID = 5019619642326725232L;
	
	/**
	 * 任务名称
	 */
	private String taskName;
	
	/**
	 * 任务内容
	 */
	private String content;
	
	/**
	 * 任务开始时间
	 */
	private Calendar startDate;
	
	/**
	 * 任务结束时间
	 */
	private Calendar endDate;
	
	/**
	 * 负责人ID
	 */
	private Long ownerId;
	
	/**
	 * 公司ID
	 */
	private Long companyId;
	
	/**
	 * 负责人名称
	 */
	private String ownerName;
	
	/**
	 * 创建人名称
	 */
	private String creatorName;
	
	/**
	 * 任务状态
	 */
	private int status;
	

	@Column(name = "task_name")
	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	@Column(name = "content")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Column(name = "start_date")
	public Calendar getStartDate() {
		return startDate;
	}

	public void setStartDate(Calendar startDate) {
		this.startDate = startDate;
	}

	@Column(name = "end_date")
	public Calendar getEndDate() {
		return endDate;
	}

	public void setEndDate(Calendar endDate) {
		this.endDate = endDate;
	}
	
	@Column(name = "ownerId")
	public Long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(Long ownerId) {
		this.ownerId = ownerId;
	}
	
	@Column(name = "companyId")
	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	@Column(name = "owner_name")
	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	@Column(name ="creator_name")
	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	
	@Column(name = "status")
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}

}
